package ModelLayer;

    public class Person
    {
    //instance variables
    private String id;
    private String name;
    private String surname;
    private String address;
    private String phone;
    private String cpr;

    /**
     * Empty constructor for testing purposes
     */
    
    public Person()
    {
        id = "";
        name = "";
        surname = "";
        address = "";
        phone = "";
        cpr = "";
    }
    
    /**
     * Constructor for objects of class Person
     */
    
    public Person (String _id, String _name, String _surname, String _address, String _phone, String _cpr)
    {
        id = _id;
        name = _name;
        surname = _surname;
        address = _address;
        phone = _phone;
        cpr = _cpr;
    }
    /**
     * Accessor and Mutator methods
     */
    
    public void setId(String _id)
    {
        id = _id;
    }
    
    public String getId()
    {
        return id;
    }
    
    public void setName(String _name)
    {
        name = _name;
    }
    
    public String getName()
    {
        return name;
    }
    
    public void setSurname(String _surname)
    {
        surname = _surname;
    }
    
    public String getSurname()
    {
        return surname;
    }
    
    public void setAddress(String _address)
    {
        address = _address;
    }
    
    public String getAddress()
    {
        return address;
    }
    
    public void setPhone(String _phone)
    {
        phone = _phone;
    }
    
    public String getPhone()
    {
        return phone;
    }
    
    public void setCpr(String _cpr)
    {
        cpr = _cpr;
    }
    
    public String getCpr()
    {
        return cpr;
    }
    
}
